package grape.crm.rest.customercredential.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 客户证件表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="客户证件添加表单对象")
public class CustomerCredentialAttrCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message="证件类型,字典不能为空")
    @ApiModelProperty(value = "证件类型,字典",required = true)
    private String credentialTypeDictId;

    @NotEmpty(message="证件编码/内容不能为空")
    @ApiModelProperty(value = "证件编码/内容",required = true)
    private String credential;



}
